<?xml version="1.0" encoding="UTF-8"?>
<as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
    <namespaces>
        <Namespace>
            <prefix>gml</prefix>
            <uri>http://www.opengis.net/gml</uri>
        </Namespace>
        <Namespace>
            <prefix>gsml</prefix>
            <uri>urn:cgi:xmlns:CGI:GeoSciML:2.0</uri>
        </Namespace>
    </namespaces>
    <sourceDataStores>
        <DataStore>
            <id>datastore</id>
            <parameters>
                <Parameter>
                    <name>directory</name>
                    <value>file:./</value>
                </Parameter>
            </parameters>
        </DataStore>
    </sourceDataStores>
    <targetTypes>
        <FeatureType>
            <schemaUri>http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd</schemaUri>
        </FeatureType>
    </targetTypes>
    <typeMappings>
        <FeatureTypeMapping>
            <sourceDataStore>datastore</sourceDataStore>
            <sourceType>GeologicUnit</sourceType>
            <targetElement>gsml:GeologicUnit</targetElement>
            <attributeMappings>
				<AttributeMapping>
					<targetAttribute>
                        gsml:GeologicUnit
					</targetAttribute>
					<idExpression>
						<OCQL>GML_ID</OCQL>
					</idExpression>				
				</AttributeMapping>
				<AttributeMapping>
					<targetAttribute>
                        gml:description
					</targetAttribute>
					<sourceExpression>
						<OCQL>TEXTDESCRIPTION</OCQL>						
					</sourceExpression>					
				</AttributeMapping>				
				<AttributeMapping>
					<targetAttribute>
                        gml:name
					</targetAttribute>
					<sourceExpression>
						<OCQL>NAME</OCQL>						
					</sourceExpression>
					<ClientProperty>
						<name>codeSpace</name>
						<value>'urn:ietf:rfc:2141'</value>
					</ClientProperty>
					<isMultiple>true</isMultiple>
				</AttributeMapping>			
				<AttributeMapping>
					<targetAttribute>
                       gsml:occurrence/gsml:MappedFeature/gml:description
					</targetAttribute>
					<sourceExpression>
						<OCQL>TEXTDESCRIPTION</OCQL>									
					</sourceExpression>	
					<isMultiple>true</isMultiple>
				</AttributeMapping> 
            </attributeMappings>
        </FeatureTypeMapping>		
    </typeMappings>
</as:AppSchemaDataAccess>
